import axios from "@/utils/axios";
//加密算法
import { shaCrypto } from '../utils/crypto';
// ------------------------------网页取证接口---------------------------------------
/*
  网页取证
*/
export const addObtainWeb = (body) => {
    return axios.post("/evidence/obtain/web/create", body);
};
// ------------------------------截图取证接口---------------------------------------
/*
  截图取证
*/
export const addObtainImageWeb = (body) => {
    return axios.post("/evidence/obtain/image/create", body);
};
// ------------------------------取证房间接口---------------------------------------
/*
  取证房间列表接口
*/
export const getEvidenceObtain = (parmas) => {
    return axios.get("/evidence/obtain/query", parmas);
};
/*
 取证明细接口
*/
export const detailEvidenceObtain = (evidenceId) => {
    return axios.get("/evidence/obtain/detail", evidenceId);
};
// ------------------------------批量取证接口---------------------------------------
/*
  批量网页取证接口
*/
export const addEvidenceObtainWeb = (body) => {
    const headers = {
        "Content-Type": "multipart/form-data",
    }
    return axios.post("/evidence/obtain/web/batch", body, headers);
};
/*
 批量截屏取证接口
*/
export const addEvidenceObtainImage = (body) => {
    const headers = {
        "Content-Type": "multipart/form-data",
    }
    return axios.post("/evidence/obtain/image/batch", body, headers);
};


// ------------------------------录屏取证接口---------------------------------------
/*
 录屏取证接口
*/
export const addEvidenceObtainVideo = (body) => {
  const headers = {
      "Content-Type": "multipart/form-data",
  }
  return axios.post("/evidence/obtain/video/create", body, headers);
};